package cn.itcast.health.commons.resources;

import java.io.Serializable;

public class LOGMessage implements Serializable {
    private static final long serialVersionUID = 2L;
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /**
     * 请求的参数
     */
    private String requestParameters;
    /**
     * 响应的参数
     */
    private String returnParameters;
    /**
     * 错误消息
     */
    private String errorMessage;

    public LOGMessage() {
    }

    public LOGMessage(String requestParameters, String returnParameters, String errorMessage) {
        this.requestParameters = requestParameters;
        this.returnParameters = returnParameters;
        this.errorMessage = errorMessage;
    }

    public String getRequestParameters() {
        return requestParameters;
    }

    public void setRequestParameters(String requestParameters) {
        this.requestParameters = requestParameters;
    }

    public String getReturnParameters() {
        return returnParameters;
    }

    public void setReturnParameters(String returnParameters) {
        this.returnParameters = returnParameters;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    @Override
    public String toString() {
        return "LOGMessage{" +
                "requestParameters='" + requestParameters + '\'' +
                ", returnParameters='" + returnParameters + '\'' +
                ", errorMessage='" + errorMessage + '\'' +
                '}';
    }
}
